//获取项目根目录
	function getRootPath(){
		
		 //获取当前网址，如： http://localhost:8083/uimcardprj/share/meun.jsp  
	    var curWwwPath=window.document.location.href;  
	    //获取主机地址之后的目录，如： uimcardprj/share/meun.jsp  
	    var pathName=window.document.location.pathname;  
	    var pos=curWwwPath.indexOf(pathName);  
	    //获取主机地址，如： http://localhost:8083  
	    var localhostPath=curWwwPath.substring(0,pos);
	    //如果localhostPath等于http:或者https:,则说明当前网址为:http://ip:port或htts://ip:port
	    //当前网址即为localhostPath
	    if(localhostPath=="http:"||localhostPath=="https:"){
	    	localhostPath =curWwwPath;
	    	//去掉最后一个/
	        if(localhostPath.charAt(localhostPath.length-1)=='/'){
	        	localhostPath = localhostPath.substring(0,localhostPath.length-1);
	        }	    	
	    }  
	    //获取带"/"的项目名，如：/uimcardprj  
	    var projectName='';
	    if(pathName.indexOf('qb5activiti')>=0){
	    	 projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);
	    }  
	    return(localhostPath+projectName);  
	}